﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.Core.DI
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class InjectMeAttribute : Attribute
    {
        public enum LifeTimeEnum
        {
            Singleton, Trans
        }

        public Type InterfaceType { get; set; }

        public LifeTimeEnum LifeTimeType { get; set; } = LifeTimeEnum.Singleton;

        public InjectMeAttribute(Type interfaceType)
        {
            InterfaceType = interfaceType;
        }

        public InjectMeAttribute()
        {

        }
    }


}
